#ifndef _AK8975_H
#define _AK8975_H 


#include "mpu6050.h"


uint8_t AK8975_ReadByte(uint8_t reg,uint8_t *buf);
uint8_t AK8975_getDeviceID(void);
FLOAT_XYZ AK8975_Getdata(void);

int8_t AK8975_init(void);
static void AK8975_ReadNByte(uint8_t slaveAddr, uint8_t regAddr,uint8_t len,  uint8_t *data);

void AK8975_AverFilter(INT16_XYZ *mag,FLOAT_XYZ *mag_filt,uint8_t n);



#endif




